package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "cn_omc_old_out")
public class OmcOldOut extends BaseEntity {

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 出院日期
     */
    @Column(name = "leave_date")
    private String leaveDate;

    /**
     * 出院原因 1 试住不适用 2 正常出院；3 院内死亡；4 院外死亡
     */
    private Integer type;

    /**
     * 床位Id
     */
    @Column(name = "bed_id")
    private Integer bedId;

    /**
     * 床位号
     */
    @Column(name = "bed_no")
    private String bedNo;

    /**
     * 老人生日
     */
    private String birthday;

    /**
     * 性别 0-男 1-女
     */
    private Integer sex;

    /**
     * 老人身份证号
     */
    @Column(name = "id_card")
    private String idCard;

    /**
     * 入院时间 2018-02-15
     */
    @Column(name = "in_date")
    private String inDate;

    /**
     * 入住押金编号
     */
    @Column(name = "in_eposit_no")
    private String inEpositNo;

    /**
     * 死亡原因
     */
    @Column(name = "death_desc")
    private String deathDesc;

    /**
     * 死亡时间
     */
    @Column(name = "death_date")
    private String deathDate;

    /**
     * 应缴项合计
     */
    @Column(name = "charge_total")
    private BigDecimal chargeTotal;

    /**
     * 退款项合计
     */
    @Column(name = "items_total")
    private BigDecimal itemsTotal;

    /**
     * 天数退款合计
     */
    @Column(name = "days_total")
    private BigDecimal daysTotal;

    /**
     * 套餐退款合计
     */
    @Column(name = "set_meal_total")
    private BigDecimal setMealTotal;

    /**
     * 实缴总金额
     */
    @Column(name = "act_paid_fee")
    private BigDecimal actPaidFee;

    /**
     * 消费总金额
     */
    private BigDecimal monetary;

    /**
     * 当前余额
     */
    private BigDecimal remainder;

    /**
     * 应交合计
     */
    @Column(name = "total_pay")
    private BigDecimal totalPay;

    /**
     * 1 未提交 2 申请中 3 接待审核 4 审核未通过 5 收费室确认 6 服务部确认 7 医疗部确认
     */
    private Integer state;

    /**
     * 流程引擎Id
     */
    @Column(name = "process_instance_id")
    private String processInstanceId;

    /**
     * 班组Id
     */
    @Column(name = "nursing_group_id")
    private Long nursingGroupId;

    /**
     * 账单Id
     */
    @Column(name = "bill_id")
    private Long billId;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 出院说明
     */
    private String remark;
}